<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::Animation类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_animation.html">Animation</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_sky_engine2d_1_1_animation-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::Animation类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>帧动画  
 <a href="class_sky_engine2d_1_1_animation.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_animate_8h_source.html">Animate.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad774a49bb79197dfa846de764c4a64d4"><td class="memItemLeft" align="right" valign="top"><a id="ad774a49bb79197dfa846de764c4a64d4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#ad774a49bb79197dfa846de764c4a64d4">~Animation</a> ()</td></tr>
<tr class="memdesc:ad774a49bb79197dfa846de764c4a64d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:ad774a49bb79197dfa846de764c4a64d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40092686f818f6caa640269959d7b410"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a40092686f818f6caa640269959d7b410">getAnimationFrams</a> () const</td></tr>
<tr class="memdesc:a40092686f818f6caa640269959d7b410"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取动画帧数组  <a href="#a40092686f818f6caa640269959d7b410">更多...</a><br /></td></tr>
<tr class="separator:a40092686f818f6caa640269959d7b410"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49d603185708734cd75e05c880327ef6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a49d603185708734cd75e05c880327ef6">getDisplayTimes</a> () const</td></tr>
<tr class="memdesc:a49d603185708734cd75e05c880327ef6"><td class="mdescLeft">&#160;</td><td class="mdescRight">该动画播放多少次  <a href="#a49d603185708734cd75e05c880327ef6">更多...</a><br /></td></tr>
<tr class="separator:a49d603185708734cd75e05c880327ef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad483371f8f54327b0fefd55f9d5779cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#ad483371f8f54327b0fefd55f9d5779cc">setDisplayTimes</a> (int times)</td></tr>
<tr class="memdesc:ad483371f8f54327b0fefd55f9d5779cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置播放的次数  <a href="#ad483371f8f54327b0fefd55f9d5779cc">更多...</a><br /></td></tr>
<tr class="separator:ad483371f8f54327b0fefd55f9d5779cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaddcf15e4439588126efd1f627716ea2"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#aaddcf15e4439588126efd1f627716ea2">getDisplayOnceDuration</a> () const</td></tr>
<tr class="memdesc:aaddcf15e4439588126efd1f627716ea2"><td class="mdescLeft">&#160;</td><td class="mdescRight">该完整动画播放一次需要的时间  <a href="#aaddcf15e4439588126efd1f627716ea2">更多...</a><br /></td></tr>
<tr class="separator:aaddcf15e4439588126efd1f627716ea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e8cbe65378f022a58b4c3d9e5a949f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a54e8cbe65378f022a58b4c3d9e5a949f">getFrameCount</a> () const</td></tr>
<tr class="memdesc:a54e8cbe65378f022a58b4c3d9e5a949f"><td class="mdescLeft">&#160;</td><td class="mdescRight">动画的帧数  <a href="#a54e8cbe65378f022a58b4c3d9e5a949f">更多...</a><br /></td></tr>
<tr class="separator:a54e8cbe65378f022a58b4c3d9e5a949f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d12db1dac87b9f0dda22b2483596767"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a1d12db1dac87b9f0dda22b2483596767">getFrameDealy</a> (int index) const</td></tr>
<tr class="memdesc:a1d12db1dac87b9f0dda22b2483596767"><td class="mdescLeft">&#160;</td><td class="mdescRight">对应帧的延时  <a href="#a1d12db1dac87b9f0dda22b2483596767">更多...</a><br /></td></tr>
<tr class="separator:a1d12db1dac87b9f0dda22b2483596767"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91fcb71fe66e92a8f9da007125ac5e6a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a91fcb71fe66e92a8f9da007125ac5e6a">isRestOriginalFrame</a> () const</td></tr>
<tr class="memdesc:a91fcb71fe66e92a8f9da007125ac5e6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">在动画播放完毕 是否回到原始的精灵帧  <a href="#a91fcb71fe66e92a8f9da007125ac5e6a">更多...</a><br /></td></tr>
<tr class="separator:a91fcb71fe66e92a8f9da007125ac5e6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06294f757150b5ead7aab3f95df0aabf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a06294f757150b5ead7aab3f95df0aabf">setRestOriginalFrame</a> (bool rest)</td></tr>
<tr class="memdesc:a06294f757150b5ead7aab3f95df0aabf"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置动画播放完是否回到原始的精灵帧  <a href="#a06294f757150b5ead7aab3f95df0aabf">更多...</a><br /></td></tr>
<tr class="separator:a06294f757150b5ead7aab3f95df0aabf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6c9b7e09feb76219cecb13f73825c4b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#aa6c9b7e09feb76219cecb13f73825c4b">addFrames</a> (const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;frames)</td></tr>
<tr class="memdesc:aa6c9b7e09feb76219cecb13f73825c4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加动画帧数组精灵帧  <a href="#aa6c9b7e09feb76219cecb13f73825c4b">更多...</a><br /></td></tr>
<tr class="separator:aa6c9b7e09feb76219cecb13f73825c4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10b11c69bd3f063ad1a41e245f27448a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#a10b11c69bd3f063ad1a41e245f27448a">addFrame</a> (const AnimationFrameSharedPtr &amp;frame)</td></tr>
<tr class="memdesc:a10b11c69bd3f063ad1a41e245f27448a"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加动画帧  <a href="#a10b11c69bd3f063ad1a41e245f27448a">更多...</a><br /></td></tr>
<tr class="separator:a10b11c69bd3f063ad1a41e245f27448a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa86269c116e4e757c97fb6df118b2214"><td class="memItemLeft" align="right" valign="top">static AnimationSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#aa86269c116e4e757c97fb6df118b2214">create</a> ()</td></tr>
<tr class="memdesc:aa86269c116e4e757c97fb6df118b2214"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建动画  <a href="#aa86269c116e4e757c97fb6df118b2214">更多...</a><br /></td></tr>
<tr class="separator:aa86269c116e4e757c97fb6df118b2214"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6216e55bc8584480a864c634410d300"><td class="memItemLeft" align="right" valign="top">static AnimationSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#ad6216e55bc8584480a864c634410d300">create</a> (const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;frames, int times=1)</td></tr>
<tr class="memdesc:ad6216e55bc8584480a864c634410d300"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建动画  <a href="#ad6216e55bc8584480a864c634410d300">更多...</a><br /></td></tr>
<tr class="separator:ad6216e55bc8584480a864c634410d300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4f545d16fce46d2b34cd31f9c6ae512"><td class="memItemLeft" align="right" valign="top">static AnimationSharedPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_animation.html#ad4f545d16fce46d2b34cd31f9c6ae512">create</a> (const std::vector&lt; SpriteFrameSharedPtr &gt; &amp;frames, float delay=0.0f, int times=1)</td></tr>
<tr class="memdesc:ad4f545d16fce46d2b34cd31f9c6ae512"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建动画  <a href="#ad4f545d16fce46d2b34cd31f9c6ae512">更多...</a><br /></td></tr>
<tr class="separator:ad4f545d16fce46d2b34cd31f9c6ae512"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a9ce1e5bacd041cfeb99f5c23edc42a8b"><td class="memItemLeft" align="right" valign="top"><a id="a9ce1e5bacd041cfeb99f5c23edc42a8b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> ()</td></tr>
<tr class="separator:a9ce1e5bacd041cfeb99f5c23edc42a8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cffd0d4fc8a4f69a769133054943bcb"><td class="memItemLeft" align="right" valign="top"><a id="a1cffd0d4fc8a4f69a769133054943bcb"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>initWithAnimationFrame</b> (const std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_animation_frame.html">AnimationFrame</a> &gt;&gt; &amp;frams, int times)</td></tr>
<tr class="separator:a1cffd0d4fc8a4f69a769133054943bcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83d14a0cb254e361249f8755ce0c0a13"><td class="memItemLeft" align="right" valign="top"><a id="a83d14a0cb254e361249f8755ce0c0a13"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>initWithSpriteFrame</b> (const std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_sprite_frame.html">SpriteFrame</a> &gt;&gt; &amp;frames, float delay, int times)</td></tr>
<tr class="separator:a83d14a0cb254e361249f8755ce0c0a13"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>帧动画 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a10b11c69bd3f063ad1a41e245f27448a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10b11c69bd3f063ad1a41e245f27448a">&#9670;&nbsp;</a></span>addFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Animation::addFrame </td>
          <td>(</td>
          <td class="paramtype">const AnimationFrameSharedPtr &amp;&#160;</td>
          <td class="paramname"><em>frame</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加动画帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>AnimationFrameSharedPtr &amp; frame </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aa6c9b7e09feb76219cecb13f73825c4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6c9b7e09feb76219cecb13f73825c4b">&#9670;&nbsp;</a></span>addFrames()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Animation::addFrames </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;&#160;</td>
          <td class="paramname"><em>frames</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加动画帧数组精灵帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::vector&lt;AnimationFrameSharedPtr&gt; &amp; frames 动画帧数组 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="aa86269c116e4e757c97fb6df118b2214"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa86269c116e4e757c97fb6df118b2214">&#9670;&nbsp;</a></span>create() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationSharedPtr SkyEngine2d::Animation::create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建动画 </p>
<dl class="section return"><dt>返回</dt><dd>AnimationSharedPtr </dd></dl>

</div>
</div>
<a id="ad6216e55bc8584480a864c634410d300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6216e55bc8584480a864c634410d300">&#9670;&nbsp;</a></span>create() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationSharedPtr SkyEngine2d::Animation::create </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; AnimationFrameSharedPtr &gt; &amp;&#160;</td>
          <td class="paramname"><em>frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::vector&lt;AnimationFrameSharedPtr&gt; &amp; frames 动画帧数组 </td></tr>
    <tr><td class="paramname">int</td><td>times 播放的次数 如果为 <em>-1</em> 则代表动画一直执行 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>AnimationSharedPtr </dd></dl>

</div>
</div>
<a id="ad4f545d16fce46d2b34cd31f9c6ae512"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4f545d16fce46d2b34cd31f9c6ae512">&#9670;&nbsp;</a></span>create() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static AnimationSharedPtr SkyEngine2d::Animation::create </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; SpriteFrameSharedPtr &gt; &amp;&#160;</td>
          <td class="paramname"><em>frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>delay</em> = <code>0.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::vector&lt;SpriteFrameSharedPtr&gt; &amp; frames 精灵帧数组 </td></tr>
    <tr><td class="paramname">float</td><td>delay 每帧的延迟 </td></tr>
    <tr><td class="paramname">int</td><td>times 播放的次数 如果为 <em>-1</em> 则代表动画一直执行 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>AnimationSharedPtr </dd></dl>

</div>
</div>
<a id="a40092686f818f6caa640269959d7b410"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40092686f818f6caa640269959d7b410">&#9670;&nbsp;</a></span>getAnimationFrams()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;AnimationFrameSharedPtr&gt;&amp; SkyEngine2d::Animation::getAnimationFrams </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取动画帧数组 </p>
<dl class="section return"><dt>返回</dt><dd>const std::vector&lt;std::shared_ptr&lt;AnimationFrame&gt;&gt;&amp; </dd></dl>

</div>
</div>
<a id="aaddcf15e4439588126efd1f627716ea2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaddcf15e4439588126efd1f627716ea2">&#9670;&nbsp;</a></span>getDisplayOnceDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Animation::getDisplayOnceDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>该完整动画播放一次需要的时间 </p>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a49d603185708734cd75e05c880327ef6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49d603185708734cd75e05c880327ef6">&#9670;&nbsp;</a></span>getDisplayTimes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SkyEngine2d::Animation::getDisplayTimes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>该动画播放多少次 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a54e8cbe65378f022a58b4c3d9e5a949f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54e8cbe65378f022a58b4c3d9e5a949f">&#9670;&nbsp;</a></span>getFrameCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SkyEngine2d::Animation::getFrameCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>动画的帧数 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a1d12db1dac87b9f0dda22b2483596767"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d12db1dac87b9f0dda22b2483596767">&#9670;&nbsp;</a></span>getFrameDealy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::Animation::getFrameDealy </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>对应帧的延时 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>index 帧的索引 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>float </dd></dl>

</div>
</div>
<a id="a91fcb71fe66e92a8f9da007125ac5e6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91fcb71fe66e92a8f9da007125ac5e6a">&#9670;&nbsp;</a></span>isRestOriginalFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SkyEngine2d::Animation::isRestOriginalFrame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在动画播放完毕 是否回到原始的精灵帧 </p>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="ad483371f8f54327b0fefd55f9d5779cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad483371f8f54327b0fefd55f9d5779cc">&#9670;&nbsp;</a></span>setDisplayTimes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Animation::setDisplayTimes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>times</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置播放的次数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>times 播放的次数 -1 为 一直播放 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a06294f757150b5ead7aab3f95df0aabf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06294f757150b5ead7aab3f95df0aabf">&#9670;&nbsp;</a></span>setRestOriginalFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::Animation::setRestOriginalFrame </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>rest</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置动画播放完是否回到原始的精灵帧 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bool</td><td>rest 是否重置为原始精灵帧 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void 该属性默认为 <em>ture</em> </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/action/<a class="el" href="_animate_8h_source.html">Animate.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
